<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?>小新闻<?php $this->_endblock(); ?>

<?php $this->_block('helper'); ?>
<div class="box" style="margin-top: 30px;" >
	<div class="box-content">
		<a style="font-size: 20px; font-weight: bold; text-align: center; text-decoration: underline;" href="<?=url("press/add") ?>" >报道小新闻</a>
	</div>
</div>
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<div class="text-body">
<br />
	<?php foreach($presses as $p):?>
		<?if (isset($p['date'])): ?>
			<h3 style=" float: left; clear: left;">
				<?=$p['press_time'] ?>
			</h3>
		<?endif;?>
		<div class="press-entity" style="margin-left: 30px;" >
            <?php if(!empty($p['title'])): ?>
                <a style="font-weight: bold; font-size: 110%; font-family: 微软雅黑;" href="<?=url("press/p", "id/{$p['id']}") ?>"><?=h($p['title'])?></a> <br />
                <p><?=h($p['press']) ?></p>
            <?php else:?>
                <a href="<?=url("press/p", "id/{$p['id']}") ?>"><?=h($p['press']) ?></a>
            <?php endif;?>
        </div>
	<?php endforeach; ?>
</div>
<?php $this->_endblock(); ?>
